//
//  NSDictionary+Check.m
//  OrangeCard
//  Created by tianXin on 16/9/1..
//

#import "NSDictionary+Check.h"

@implementation NSDictionary (Check)

-(id)objectForKeyOrNil:(id)key
{
    id value= [self objectForKey:key];
    if ([value isEqual:[NSNull null]] || value == nil) {
        return nil;
    }else{
        return value;
    }
}

@end
